home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / catman / p_man / cat3 / qkeyevent.Z / qkeyevent
Encoding:
Text File  |  1998-10-28  |  6.9 KB  |  199 lines

  1.  
  2.  
  3.  
  4.      QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       QKeyEvent - Parameters that describe a key event
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       #include <qevent.h>
  13.  
  14.       Inherits QEvent.
  15.  
  16.     PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
  17.       QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt (((( iiiinnnntttt _t_y_p_e,,,,    iiiinnnntttt _k_e_y,,,, iiiinnnntttt _a_s_c_i_i
  18.       iiiinnnntttt kkkkeeeeyyyy (((()))) ccccoooonnnnsssstttt
  19.       iiiinnnntttt aaaasssscccciiiiiiii (((()))) ccccoooonnnnsssstttt
  20.       iiiinnnntttt ssssttttaaaatttteeee (((()))) ccccoooonnnnsssstttt
  21.       bbbboooooooollll iiiissssAAAAcccccccceeeepppptttteeeedddd (((()))) ccccoooonnnnsssstttt
  22.       vvvvooooiiiidddd aaaacccccccceeeepppptttt (((())))
  23.       vvvvooooiiiidddd iiiiggggnnnnoooorrrreeee (((())))
  24.  
  25.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  26.       The QKeyEvent    class contains parameters that describe    a key
  27.       event.
  28.  
  29.       Key events occur when    a key is pressed or released when a
  30.       widget has keyboard input focus.
  31.  
  32.       A key    event contains a special accept    flag which tells
  33.       whether the receiver wants the key. You should call
  34.       QKeyEvent::ignore() if the key press or release event    is not
  35.       handled by your widget.
  36.  
  37.       The QWidget::disable() function disables mouse and keyboard
  38.       events for a widget, and QWidget::enable() enables mouse and
  39.       keyboard events.
  40.  
  41.       The event handlers QWidget::keyPressEvent() and
  42.       QWidget::keyReleaseEvent() receive key events.
  43.  
  44.       See also: QFocusEvent    and QWidget::grabKeyboard().
  45.  
  46.       Examples:  table/table.cpp picture/picture.cpp
  47.  
  48.      MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  49.      QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt (((( iiiinnnntttt    ttttyyyyppppeeee,,,, iiiinnnntttt kkkkeeeeyyyy,,,, iiiinnnntttt aaaasssscccciiiiiiii,,,, iiiinnnntttt ssssttttaaaatttteeee ))))
  50.       Constructs a key event object.
  51.  
  52.       The _t_y_p_e parameter must be Event_KeyPress or
  53.       Event_KeyRelease.
  54.  
  55.       If _k_e_y is 0, the event is not    a result of a known key    (e.g.
  56.       it may be the    result of a compose sequence or    keyboard
  57.       macro).
  58.  
  59.       The accept flag is set to TRUE.
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/22/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))
  71.  
  72.  
  73.  
  74.      vvvvooooiiiidddd QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::aaaacccccccceeeepppptttt (((())))
  75.       Sets the accept flag of the key event    object.
  76.  
  77.       Setting the accept parameter indicates that the receiver of
  78.       the event wants the key event. Unwanted key events are sent
  79.       to the parent    widget.
  80.  
  81.       The accept flag is set by default.
  82.  
  83.       See also: ignore().
  84.  
  85.      iiiinnnntttt QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::aaaasssscccciiiiiiii (((()))) ccccoooonnnnsssstttt
  86.       Returns the ASCII code of the    key that was pressed or
  87.       released.
  88.  
  89.       Examples:  picture/picture.cpp
  90.  
  91.      vvvvooooiiiidddd QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::iiiiggggnnnnoooorrrreeee (((())))
  92.       Clears the accept flag parameter of the key event object.
  93.  
  94.       Clearing the accept parameter    indicates that the event
  95.       receiver does    not want the key event.    Unwanted key events
  96.       are sent to the parent widget.
  97.  
  98.       The accept flag is set by default.
  99.  
  100.       See also: accept().
  101.  
  102.       Examples:  table/table.cpp
  103.  
  104.      bbbboooooooollll QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::iiiissssAAAAcccccccceeeepppptttteeeedddd    (((()))) ccccoooonnnnsssstttt
  105.       Returns TRUE if the receiver of the event wants to keep the
  106.       key.
  107.  
  108.      iiiinnnntttt QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::kkkkeeeeyyyy    (((()))) ccccoooonnnnsssstttt
  109.       Returns the code of the key that was pressed or released.
  110.  
  111.       The header file qkeycode.h lists the possible    keyboard
  112.       codes. These codes are independent of    the underlying window
  113.       system.
  114.  
  115.       Key code 0 means that    the event is not a result of a known
  116.       key (e.g. it may be the result of a compose sequence or
  117.       keyboard macro).
  118.  
  119.       Examples:  table/table.cpp
  120.  
  121.      iiiinnnntttt QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt::::::::ssssttttaaaatttteeee (((()))) ccccoooonnnnsssstttt
  122.       Returns the keyboard modifier    flags.
  123.  
  124.       The returned value is    ShiftButton, ControlButton and
  125.       AltButton OR'ed together.
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 9/22/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt((((3333qqqqtttt))))
  137.  
  138.  
  139.  
  140.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.       hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqkkkkeeeeyyyyeeeevvvveeeennnntttt....hhhhttttmmmmllll
  142.  
  143.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  144.       Copyright 1992-1997 Troll Tech AS.  See the LICENSE file
  145.       included in the distribution for a complete license
  146.       statement.
  147.  
  148.      AAAAUUUUTTTTHHHHOOOORRRR
  149.       Generated automatically from the source code.
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 9/22/98)
  196.  
  197.  
  198.  
  199.